package per.jdz.circuitbreaker.alert;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import per.jdz.circuitbreaker.MethodWrapper;

public class DefaultAlert implements AlertService {

    private static final Logger LOGGER = LoggerFactory.getLogger(DefaultAlert.class);

    @Override
    public void alert(MethodWrapper methodWrapper) {
        LOGGER.warn("触发告警，无法进行重试，已重试次数:{},类名: {},方法名:{},", methodWrapper.getRetryCount(),
                methodWrapper.getO().getClass(), methodWrapper.getMethod().getName());
    }

}
